<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:ice="http://www.icesoft.com/icefaces/component"
      xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition>
        <ice:panelGrid columns="5"  style="color: black; text-align: left; margin-top: -7px" rendered="${(empty rendered)? true : rendered}">
            <ice:outputLabel value="${(empty labelSecao)? 'Seção:' : labelSecao}" for="${id}" style="${(required)? 'font-weight: bold' : 'font-weight: normal'}"/>
            <ice:selectOneMenu  title="${titleSecao}"  converter="entidadeConverter" disabled="${disabled}" style="${(empty styleSecao)? 'width : 160px' : styleSecao}" id="NLsecao"   readonly="${(empty readonly)? (botoes.controllerPagina.formularioDesabilitado) : readonly}"
                                value="#{beanSecaoNCMS.secaoNcmSelecionada}" >
                <f:selectItems   value="#{listaTabelas.secoesNcm}"/>
            </ice:selectOneMenu>
            <ice:outputText style="${(required)? 'font-weight: bold' : 'font-weight: normal'}" value="${(empty labelNCM)? 'NCMS:' : labelNCM}"/>
            <ice:selectOneMenu title="${titleNCM}" style="${(empty styleNCM)? 'width : 200px' : styleNCM}" disabled="${disabled}" value="${value}" readonly="${(empty readonly)? (botoes.controllerPagina.formularioDesabilitado) : readonly}"
                               id="${id}" converter="entidadeConverter" requiredMessage="${label} é obrigatório." required="${(empty required)? false : required}">
                <f:selectItems  value="#{beanSecaoNCMS.produtosNcm}" />
            </ice:selectOneMenu>
            <ice:commandButton  actionListener="#{navegaEntrePaginas.navegarPagina}" disabled="${disabled}" enabledOnUserRole="${(empty enabledOnUserRole)? 'ROLE_ADMIN, ROLE_ESTCADPRODUTOSNCM' : enabledOnUserRole}"  id="EstCadProdutosNcm"
                               image="/resources/btAdd.png" title="Cadastrar NCM"/>
        </ice:panelGrid>
    </ui:composition>
</html>
